using System;
using System.Collections.Generic;
using System.Text;
using Calc.Execution;

namespace Calc.Operations
{
	public class Constant : IOperand
	{
		private double _value;

		public double  Value
		{
			get { return _value; }
			set { _value = value; }
		}

		public Constant(double value)
		{
			_value = value;
		}

		public double GetValue(ExecutionContext context)
		{
			return _value;
		}

		public override string ToString()
		{
			return _value.ToString();
		}
	}
}
